package com.lc.luzhengtang.adapter;

import android.view.ViewGroup;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lc.luzhengtang.R;
import com.lc.luzhengtang.bean.CouponOutDataBean;
import com.zcx.helper.scale.ScaleScreenHelperFactory;

import java.util.List;

/**
 * 文 件 名: NewsListAdapter
 * 创 建 人: zhangyu
 * 创建日期: 16/12/24 19:55
 * 邮   箱: yuanchong121@gmail.com
 * 修改时间：
 * 修改备注：
 */
public class CouponListOutDateAdapter extends BaseQuickAdapter<CouponOutDataBean, BaseViewHolder> {
    public CouponListOutDateAdapter(List<CouponOutDataBean> data) {

        super(R.layout.item_outdate, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, CouponOutDataBean item) {
        ScaleScreenHelperFactory.getInstance().loadView((ViewGroup) helper.convertView);
        helper.setText(R.id.text_title, "满"+item.getBigmoney()+"减"+item.getSmallmoney()+"现金券");
        helper.setText(R.id.text_time, "使用期限"+item.getStart_time() + "—" + item.getEnd_time());
    }


}
